﻿namespace Test30.Engine
{
    public class CurePoisonAction : Action
    {
        public CurePoisonAction(Entity entity)
            : base(entity)
        {
        }

        protected override ActionResult OnProcess()
        {
            // see if the entity actually is poisoned
            if (Entity.Conditions.Poison.IsActive)
            {
                AddAction(Entity.Conditions.Poison.Deactivate());
            }

            return ActionResult.Done;
        }
    }
}
